import 'package:flutter_doban/request/request.dart';

class RequestApi{
  //获取电影列表
  static getMovieList(String category ,int pageNumber, int pageSize) async {
    String path = "movie/" + category;
    int offset = (pageNumber - 1) * pageSize;
    Map<String, dynamic> params = {"start":offset, "count":pageSize};
    return await Requset.requestData(path, "get", params:params);
  }

  //获取电影详情
  static getMovieDetail(String movieId) async{
    String path = "movie/subject/" + movieId;
    return await Requset.requestData(path, "get");
  }
}